<g:if test="${Proteins.size()==0}">
  <div class="loading">0 Proteins found</div>
</g:if>
<g:else>

<div class="list">
  <div class="line headline listhead listline">
    <div class="element protein">Protein</div>
    <div class="element organism">Organism</div>
    <div class="element pvalue">p-Value</div>
    <div class="element description">Description</div>
  </div>
  <div class="data">
  <g:each in="${Proteins}" var ="line">
    <g:set var="prot" value="${line.protein}" />
      <div class="line listline">
        <div class="element protein"><g:link controller="Protein" action="show" id="${prot.id}" target="_blank">${prot.mainId}</g:link></div>
        <div class="element organism">Human</div>
        <div class="element pvalue">${line.pValue}</div>
        <div class="element description"><g:if test="${prot.description.length()>40}">${prot.description[0..40] }...</g:if><g:else>${prot.description }</g:else></div>
      </div>
  </g:each>
  </div>
  <div class="line footline">
    <g:link action="download" id="${1}" class="element download">Download</g:link>
  </div>
</div>
</g:else>
